﻿using System;

namespace SuperX.SuperSocket.Client
{
    public interface ITransferEngine
    {
        /// <summary>
        /// 该事件接口暴露了所有正在上传的文件（夹）的实时状态。
        /// </summary>
        IFileUploadingEvents FileUploadingEvents { get; }

        void BeginUpLoad(string fileName, string saveName, string ip, int prot);

        void BeginSendMessger(string msg, string ip, int port);
    }

    public interface IFileUploadingEvents
    {
        event BTransferEventHandler<EventArgs> FileExist;

        event TransferEventHandler<EventArgs> TransferComplete;

        event TransferEventHandler<TransferErrorEventArgs> TransferError;

        event TransferEventHandler<TransferStepEventArgs> TransferStep;
    }
}